<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
</head>
<body>
<h2>下面是服务器的配置信息</h2>
<?php
echo "服务器IP: ".GetHostByName($_SERVER['SERVER_NAME'])."<br/><br/>";
echo "服务器OS: ".php_uname('s')."<br/><br/>";
echo "服务器PHP版本: ".PHP_VERSION."<br/><br/>";
echo "当前客户端IP: ".$_SERVER['REMOTE_ADDR']."<br/><br/>";
echo "服务器引擎: ".$_SERVER['SERVER_SOFTWARE']."<br/><br/>";
echo "服务器端口号: ".$_SERVER['SERVER_PORT']."<br/><br/>";
?>
</body>
</html>